package com.maychat.service;

import com.maychat.exception.BusinessException;
import com.maychat.pojo.AppUpdate;
import com.maychat.pojo.RowsWithTotal;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.Map;

public interface AppUpdateService {
    RowsWithTotal<AppUpdate> selectCondByPage(AppUpdate appUpdate, Integer page, Integer pageSize);

    void saveUpdate(AppUpdate appUpdate, MultipartFile file) throws BusinessException, IOException;

    void delById(Integer id) throws BusinessException;

    void releaseUpdate(Integer id, Integer status, String grayscaleId) throws BusinessException;

    Map<String, Object> getLatest(String version, String uid) throws Exception;
}
